package cn.iocoder.yudao.module.crm.enums.task;

import cn.hutool.core.util.ObjUtil;
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * CRM 审核状态
 *
 * @author ZanGe丶
 * @since 2023-11-30 21:53
 */
@Getter
@AllArgsConstructor
public enum CrmTaskReviewStatus implements IntArrayValuable {
    DEAL_REVIEW(0, "待处理"),
    PEND_REVIEW(1, "待审核"),
    NOT_PASS_REVIEW(2, "审核不通过"),
    PASS_REVIEW(3, "审核通过");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmTaskReviewStatus::getStatus).toArray();

    /**
     * 状态
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
